<?php /* Smarty version 2.6.26, created on 2010-05-24 22:51:20
         compiled from search.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/cssapp.css" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
	
		$(":input#keyword").focus(function(){
			$(this).css("color","#C00");
		});
		
		$("#search_form").submit(function() {
			var category = $("#category").val();
			var keyword = $(":input#keyword").val();
		
			if (category == "0") {
				alert("请选择类别！");
				return false;
			}
		
			if (keyword == "") {
				alert("关键字不能为空！");
				return false;
			}
		
			return true;
		});
		
	});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<!--定义主容器-->
<div id="container">
    <!--头部-->
<div id="header">
      <!--logo-->
      <div class="logo"><img alt="先锋教学平台" src="webapps/images/logo.png" height="50px" /></div>
      
      <!--导航-->
      <div id="navigation">
          <ul>
              <li><a href="index.php"><span>&nbsp;&nbsp;首&nbsp;&nbsp;&nbsp;&nbsp;页&nbsp;&nbsp;</span></a></li>
              <li><a href="index.php?controller=live"><san>教学直播</span></a></li>
              <li><a href="index.php?controller=broadcast"><span>教学点播</span></a></li>
              <li><a href="index.php?controller=search"><span>视频检索</span></a></li>
              <li><a href="index.php?controller=feedback"><span>意见反馈</span></a></li>
          </ul>
      </div>
    </div>
    <div class="clear"></div>
    
    <!--视频搜索服务-->
    <div id="search" class="radius">
    	<form name="search_form" id="search_form" action="index.php?controller=search&action=searchAction" method="post">
        <select id="category" name="category">
          <option value="0">请选择…</option>
        <?php unset($this->_sections['tmp_res_broadcastCategory']);
$this->_sections['tmp_res_broadcastCategory']['name'] = 'tmp_res_broadcastCategory';
$this->_sections['tmp_res_broadcastCategory']['loop'] = is_array($_loop=$this->_tpl_vars['res_broadcastCategory']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tmp_res_broadcastCategory']['show'] = true;
$this->_sections['tmp_res_broadcastCategory']['max'] = $this->_sections['tmp_res_broadcastCategory']['loop'];
$this->_sections['tmp_res_broadcastCategory']['step'] = 1;
$this->_sections['tmp_res_broadcastCategory']['start'] = $this->_sections['tmp_res_broadcastCategory']['step'] > 0 ? 0 : $this->_sections['tmp_res_broadcastCategory']['loop']-1;
if ($this->_sections['tmp_res_broadcastCategory']['show']) {
    $this->_sections['tmp_res_broadcastCategory']['total'] = $this->_sections['tmp_res_broadcastCategory']['loop'];
    if ($this->_sections['tmp_res_broadcastCategory']['total'] == 0)
        $this->_sections['tmp_res_broadcastCategory']['show'] = false;
} else
    $this->_sections['tmp_res_broadcastCategory']['total'] = 0;
if ($this->_sections['tmp_res_broadcastCategory']['show']):

            for ($this->_sections['tmp_res_broadcastCategory']['index'] = $this->_sections['tmp_res_broadcastCategory']['start'], $this->_sections['tmp_res_broadcastCategory']['iteration'] = 1;
                 $this->_sections['tmp_res_broadcastCategory']['iteration'] <= $this->_sections['tmp_res_broadcastCategory']['total'];
                 $this->_sections['tmp_res_broadcastCategory']['index'] += $this->_sections['tmp_res_broadcastCategory']['step'], $this->_sections['tmp_res_broadcastCategory']['iteration']++):
$this->_sections['tmp_res_broadcastCategory']['rownum'] = $this->_sections['tmp_res_broadcastCategory']['iteration'];
$this->_sections['tmp_res_broadcastCategory']['index_prev'] = $this->_sections['tmp_res_broadcastCategory']['index'] - $this->_sections['tmp_res_broadcastCategory']['step'];
$this->_sections['tmp_res_broadcastCategory']['index_next'] = $this->_sections['tmp_res_broadcastCategory']['index'] + $this->_sections['tmp_res_broadcastCategory']['step'];
$this->_sections['tmp_res_broadcastCategory']['first']      = ($this->_sections['tmp_res_broadcastCategory']['iteration'] == 1);
$this->_sections['tmp_res_broadcastCategory']['last']       = ($this->_sections['tmp_res_broadcastCategory']['iteration'] == $this->_sections['tmp_res_broadcastCategory']['total']);
?>
            <option value="<?php echo $this->_tpl_vars['res_broadcastCategory'][$this->_sections['tmp_res_broadcastCategory']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['res_broadcastCategory'][$this->_sections['tmp_res_broadcastCategory']['index']]['categoryName']; ?>
</option>
        <?php endfor; else: ?>
        	暂没有类别
        <?php endif; ?>
        </select>
        <label for="keyword"><input type="text" id="keyword" name="keyword" /></label>
        <input type="submit" name="submit" value="检索视频" style="padding-top:1px;" />
        </form>
    </div>
    <div class="clear"></div>
    
    
    
    <!--footer-->
    <div id="footer" class="radius">
        <a href="#">关于系统</a> | <a href="#">服务条款</a> | <a href="#">版权所有先锋互联网传媒学院</a> <span style="font-family:Arial; font-size:12px;">Copyright &copy; 2010 Aheadedu. All Rights Reserved</span>
    </div>
    
</div>
</body>
</html>